package com.pxmeta.common.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum BaiduVerifyType {

    SEXUAL_PORN("sexual_porn","色情审核","涉黄"),
    SEXUAL_SEXY("sexual_sexy","性感审核","涉黄"),
    SEXUAL_INTIMACY("sexual_intimacy","亲密行为审核","涉黄"),
    SEXUAL_VULGAR("sexual_vulgar","低俗行为","涉黄"),
    SEXUAL_SPECIAL("sexual_special","特殊行为","涉黄"),
    TERRORIST_GROUP("terrorist_group","暴恐组织审核","暴恐"),
    TERRORIST("terrorist","暴恐人物审核","暴恐"),
    TERROR_EVENT("terror_event","暴力事件审核","暴恐"),
    POLITICIAN("politician","涉政人物审核","涉政"),
    POLITICAL_EVENT("political_event","涉政事件审核","涉政"),
    POLITICAL_GROUP("political_group","涉政组织审核","涉政"),
    AD_BRAND("ad_brand","品牌广告审核","广告"),
    AD_MARKETING("ad_marketing","欺诈及营销广告审核","广告"),
    ILLEGAL_GAMBLE("illegal_gamble","赌博审核","非法"),
    ILLEGAL_FORGERY("illegal_forgery","假冒伪劣及造假盗窃审核","非法"),
    ILLEGAL_TRADE("illegal_trade","非法交易审核","非法"),
    ILLEGAL_PRIVACY("illegal_privacy","非法获取私人信息审核","非法");


    private final String type;
    private final String desc;
    private final String group;

    public static String getGroup(String type){
        BaiduVerifyType[] values = values();
        for (BaiduVerifyType value : values) {
            if(value.getType().equals(type)){
                return value.getGroup();
            }
        }
        return null;
    }
}
